package com.ruoyi.ucar.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.UCarBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;


/**
 * 订单支付详情对象 t_order_pay_detail
 * 
 * @author ruoyi
 * @date 2025-07-25
 */
@Data
@ApiModel("订单支付详情")
@TableName("t_order_pay_detail")
public class TOrderPayDetail extends UCarBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 订单编号 */
    @ApiModelProperty(value = "订单编号")
    @Excel(name = "订单编号")
    @TableField("order_code")
    private String orderCode;

    /** 余额支付金额 */
    @ApiModelProperty(value = "余额支付金额")
    @Excel(name = "余额支付金额")
    @TableField("balance_pay")
    private BigDecimal balancePay;

    /** 赠送金额支付金额 */
    @ApiModelProperty(value = "赠送金额支付金额")
    @Excel(name = "赠送金额支付金额")
    @TableField("gift_money_pay")
    private BigDecimal giftMoneyPay;


    /** 返现金额支付金额 */
    @ApiModelProperty(value = "返现金额支付金额")
    @Excel(name = "返现金额支付金额")
    @TableField("return_money_pay")
    private BigDecimal returnMoneyPay;

    /** 微信官方支付金额 */
    @ApiModelProperty(value = "微信官方支付金额")
    @Excel(name = "微信官方支付金额")
    @TableField("wx_pay")
    private BigDecimal wxPay;

    /** 创建人 */
    @Excel(name = "创建人")
    @TableField("created_by")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @TableField("updated_by")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;

    /** 删除标志 */
    @Excel(name = "删除标志")
    @TableField("delete_flag")
    private Long deleteFlag;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("balancePay", getBalancePay())
            .append("giftMoneyPay", getGiftMoneyPay())
            .append("returnMoneyPay", getReturnMoneyPay())
            .append("wxPay", getWxPay())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
